/**
 * @file		handler.s
 * @brief		Handler
 * @note		None
 * @attention	None
 * 
 * <B><I>Copyright 2015 Socionext Inc.</I></B>
 */

//---------------------------------------------------------------
//   Condition Assenble Control
//---------------------------------------------------------------
	.text
	.section .HANDLER_CODE
    .align 2

//---------------------------------------------------------------
//	IRQ handler
//---------------------------------------------------------------
	.type	_IRQ_Handler, %function
	.global	_IRQ_Handler
_IRQ_Handler:
	subs	pc, r14, #4						// Return form IRQ

//---------------------------------------------------------------
//	FIQ handler
//---------------------------------------------------------------
	.type	_FIQ_Handler, %function
	.global	_FIQ_Handler
_FIQ_Handler:
	subs	pc, r14, #4						// Return from FIQ

//---------------------------------------------------------------
//	Undefined instruction exception handler
//---------------------------------------------------------------
	.type	_Undef_ins_Handler, %function
	.global	_Undef_ins_Handler
_Undef_ins_Handler:
	B		_Undef_ins_Handler

//---------------------------------------------------------------
//	Prefetch abort exception handler
//---------------------------------------------------------------
	.type	_Pref_Abort_Handler, %function
	.global	_Pref_Abort_Handler
_Pref_Abort_Handler:
	B		_Pref_Abort_Handler

//---------------------------------------------------------------
//	Data abort exception handler
//---------------------------------------------------------------
	.type	_Data_Abort_Handler, %function
	.global	_Data_Abort_Handler
_Data_Abort_Handler:
	B		_Data_Abort_Handler

//---------------------------------------------------------------
//	SWI handler
//---------------------------------------------------------------
	.type	_SWI_Handler, %function
	.global	_SWI_Handler
_SWI_Handler:
	B		_SWI_Handler

	.end
